New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Lucene's new SimpleQueryParser #4159
Comments
nice one! should probably be named |
I think this potentially will end up being the more common "free" text option, so @clintongormley thoughts? |
I think the I'd like to to see a new query dedicated to parsing query languages, not just this simple one. It should support different "dialects", and each dialect may have different flags and options that can be configured. Perhaps the /me is short on inspiration here The |
I could see a |
oh yeah |
Can the In all seriousness, I mean, what word say "explodes user provided text into potentially complex query?" |
|
I have this implemented (without tests yet) as the Here's what this looks like so far: In simplest form: {
"query": {
"simple": {
"description": "foo bar"
}
}
} And with all the options: {
"query": {
"simple": {
"query": "foo bar",
"fields": ["body^3", "name"],
"default_operator": "and",
"analyzer": "myanalyzer"
}
}
} How does this look? I'd like to nail down a name/syntax before writing the tests/documentation/javadocs and submitting a pull request. |
Here's my thoughts on why it should be a separate query:
|
Hi @dakrone I just want to make sure that, whatever name we choose, we don't end up blocking the possibility of adding other dialects later on. Some of those dialects MAY understand the field: prefix, or handle wildcards, fuzzy etc, so I don't want the form of this simple query parser to be the only thing we consider when choosing a name. I do agree that this simple syntax probably does make sense as the default dialect in whatever this query is called. Regarding the short form of the query:
The Thoughts? |
I'd be in favor of that, the only reason I actually added it was to "simplify" this query to try and get it down to something that looks like a |
So then all that's left is choosing the name :)
|
This adds support for Lucene's SimpleQueryParser by adding a new type of query called the `simple_query_string`. The `simple_query_string` query is designed to be able to parse human-entered queries without throwing any exceptions. Resolves elastic#4159
This adds support for Lucene's SimpleQueryParser by adding a new type of query called the `simple_query_string`. The `simple_query_string` query is designed to be able to parse human-entered queries without throwing any exceptions. Resolves #4159
This adds support for Lucene's SimpleQueryParser by adding a new type of query called the `simple_query_string`. The `simple_query_string` query is designed to be able to parse human-entered queries without throwing any exceptions. Resolves elastic#4159
Lucene's new SimpleQueryParser is designed to be able to parse human-entered queries without throwing any exceptions, we should add this and expose it in Elasticsearch.
See https://issues.apache.org/jira/browse/LUCENE-5336
The text was updated successfully, but these errors were encountered: